<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_user".
 *
 * @property string $user_id
 * @property string $name
 * @property string $password
 * @property string $email
 * @property integer $phone
 * @property integer $identity_num
 * @property integer $create_time
 * @property integer $start_time
 * @property integer $finish_time
 * @property integer $birthday
 * @property integer $sex
 * @property integer $disabled
 */
class User extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_user';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['phone', 'identity_num', 'create_time', 'start_time', 'finish_time', 'birthday', 'sex', 'disabled'], 'integer'],
            [['name', 'password', 'email','role','token','accid'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'user_id' => 'User ID',
            'name' => 'Name',
            'password' => 'Password',
            'email' => 'Email',
            'phone' => 'Phone',
            'identity_num' => 'Identity Num',
            'create_time' => 'Create Time',
            'start_time' => 'Start Time',
            'finish_time' => 'Finish Time',
            'birthday' => 'Birthday',
            'sex' => 'Sex',
            'disabled' => 'Disabled',
        ];
    }
}
